a,b = input ("请输入字符串a和字符串b:").split(',')
x = 0
print("{}在字符串{}中出现了{}次".format(b,a,a.count(b)))
while a.find(b,x) != -1:
    x = a.find(b, x)
    print(x)
    x += 1
